/*******************************************************************************
 * Copyright (c) 2006 CEA List.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     CEA List - initial API and implementation
 *******************************************************************************/
package com.cea.papyrus.diagram.classdiagram.tabbedproperties.filters;

import org.eclipse.uml2.uml.Association;
import org.eclipse.uml2.uml.Class;
import org.eclipse.uml2.uml.Extension;
import org.eclipse.uml2.uml.OpaqueBehavior;

import com.cea.papyrus.core.tabbedproperties.UMLElementFilter;


/**
 * this class is used to display the abstract section
 */
public class AbstractSectionFilter   extends UMLElementFilter {

/**
 * {@inheritDoc}
 */
	public boolean select(Object object) {    	
   	
        if (super.select(object) 
        		&& (	(element instanceof Class) 
        				|| (element instanceof Association))
        		&& (! (element instanceof OpaqueBehavior))
        		&& (! (element instanceof Extension))) {
        	return true;
        }
        return false;
    }
}
